(function(){
	     function encrypt(word){
         var key = CryptoJS.enc.Utf8.parse("123454321abcdcba");
         var srcs = CryptoJS.enc.Utf8.parse(word);  
         var encrypted = CryptoJS.AES.encrypt(srcs, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});  
         return encrypted.toString();  
    }
    function encrypt(word,key){
        key = CryptoJS.enc.Utf8.parse(key);
        var srcs = CryptoJS.enc.Utf8.parse(word);
        var encrypted = CryptoJS.AES.encrypt(srcs, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
        return encrypted.toString();
    }
    function decrypt(word){
        var key = CryptoJS.enc.Utf8.parse("123454321abcdcba");
         var decrypt = CryptoJS.AES.decrypt(word, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});  
         return CryptoJS.enc.Utf8.stringify(decrypt).toString();  
    }
    function decrypt(word,key){
        key = CryptoJS.enc.Utf8.parse(key);
         var decrypt = CryptoJS.AES.decrypt(word, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
         return CryptoJS.enc.Utf8.stringify(decrypt).toString();
    }
   

 encryptUtil = {
  encrypt: encrypt,
  decrypt: decrypt
  };

return encryptUtil;
	
	
	
})()
